#ifdef WIIMOTE

#include "inc\GUI\wiimote\wiimotewidget.h"

WiimoteWidget::WiimoteWidget() :
    _wiimoteDialog(NULL)
{
}

void WiimoteWidget::setWiimote(WiimoteStatusDialog *dialog) {
    _wiimoteDialog = dialog;
    if (hasWiimoteDialog()) {
        _wiimoteDialog->clearCommands();
        associateWiimote(_wiimoteDialog);
    }
}

bool WiimoteWidget::hasWiimoteDialog() const {
    return _wiimoteDialog != NULL;
}

WiimoteStatusDialog* WiimoteWidget::getWiimoteDialog() {
    return _wiimoteDialog;
}

#endif
